/* 
 * File:   utils.h
 * Author: Elias Capito, Jonathan Neuhaus
 *
 * Created on 6. mai 2010, 15:18
 */

#ifndef _UTILS_H
#define	_UTILS_H

#ifdef __APPLE__
#include <opencv/cv.h>
#include <opencv/highgui.h>
#else
#include <cv.h>
#include <highgui.h>
#endif

using namespace cv;

class Utils {
public:
    static void showHistoGray(IplImage* img, char* desc);
    static IplImage* drawCross(int x, int y, IplImage *result, CvScalar color, char *legend = "");
    static IplImage* drawCircle(int x, int y, int rayon, IplImage *image, CvScalar color, char *legend = "");
    static IplImage* drawLign(int x1, int y1, int x2, int y2, IplImage *image, CvScalar color, char *legend = "");
    static IplImage* drawTextHour(int x, int y, IplImage *image, CvScalar color, int hour, int min);
    static void saveImage(IplImage* image, char* pathname);
    static void showImage(IplImage* image, char* desc = "");
    static IplImage* loadImage(char* nameFile);
};

#endif	/* _UTILS_H */

